#!/bin/sh

DEPLOY_SERVER=myweb
DEPLOY_PATH=/usr/local/tomcat/webapps_fforw.de/boticelli

rsync -rvIz --rsh=ssh --exclude=**/.#* --exclude=**/*~ --exclude=**/*.pyc --exclude=**/.svn --exclude=**/*.xcf --exclude **/lucene-index WebContent/ $DEPLOY_SERVER:$DEPLOY_PATH

rsync -rvIz --delete --rsh=ssh --exclude=**/.#* --exclude=**/*~ --exclude=**/*.pyc --exclude=**/.svn --exclude=**/*.xcf build/classes/ $DEPLOY_SERVER:$DEPLOY_PATH/WEB-INF/classes

scp prod/log4j.properties $DEPLOY_SERVER:$DEPLOY_PATH/WEB-INF/classes/log4j.properties
scp prod/boticelli.properties $DEPLOY_SERVER:$DEPLOY_PATH/WEB-INF/boticelli.properties

